Optimal. Leaf size=291 \[ \frac{\sqrt [4]{a} \left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right ) \sqrt{\frac{a+b \tan ^4(x)}{\left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right )^2}} \text{EllipticF}\left (2 \tan ^{-1}\left (\frac{\sqrt [4]{b} \tan (x)}{\sqrt [4]{a}}\right ),\frac{1}{2}\right )}{2 \sqrt [4]{b} \left (\sqrt{a}-\sqrt{b}\right ) \sqrt{a+b \tan ^4(x)}}-\frac{\tan ^{-1}\left (\frac{\sqrt{a+b} \tan (x)}{\sqrt{a+b \tan ^4(x)}}\right )}{2 \sqrt{a+b}}-\frac{\left (\sqrt{a}+\sqrt{b}\right ) \left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right ) \sqrt{\frac{a+b \tan ^4(x)}{\left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right )^2}} \Pi \left (-\frac{\left (\sqrt{a}-\sqrt{b}\right )^2}{4 \sqrt{a} \sqrt{b}};2 \tan ^{-1}\left (\frac{\sqrt [4]{b} \tan (x)}{\sqrt [4]{a}}\right )|\frac{1}{2}\right )}{4 \sqrt [4]{a} \sqrt [4]{b} \left (\sqrt{a}-\sqrt{b}\right ) \sqrt{a+b \tan ^4(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.240282, antiderivative size = 291, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {3670, 1320, 220, 1707} \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{a+b} \tan (x)}{\sqrt{a+b \tan ^4(x)}}\right )}{2 \sqrt{a+b}}+\frac{\sqrt [4]{a} \left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right ) \sqrt{\frac{a+b \tan ^4(x)}{\left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right )^2}} F\left (2 \tan ^{-1}\left (\frac{\sqrt [4]{b} \tan (x)}{\sqrt [4]{a}}\right )|\frac{1}{2}\right )}{2 \sqrt [4]{b} \left (\sqrt{a}-\sqrt{b}\right ) \sqrt{a+b \tan ^4(x)}}-\frac{\left (\sqrt{a}+\sqrt{b}\right ) \left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right ) \sqrt{\frac{a+b \tan ^4(x)}{\left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right )^2}} \Pi \left (-\frac{\left (\sqrt{a}-\sqrt{b}\right )^2}{4 \sqrt{a} \sqrt{b}};2 \tan ^{-1}\left (\frac{\sqrt [4]{b} \tan (x)}{\sqrt [4]{a}}\right )|\frac{1}{2}\right )}{4 \sqrt [4]{a} \sqrt [4]{b} \left (\sqrt{a}-\sqrt{b}\right ) \sqrt{a+b \tan ^4(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3670
Rule 1320
Rule 220
Rule 1707
Rubi steps
\begin{align*} \int \frac{\tan ^2(x)}{\sqrt{a+b \tan ^4(x)}} \, dx &=\operatorname{Subst}\left (\int \frac{x^2}{\left (1+x^2\right ) \sqrt{a+b x^4}} \, dx,x,\tan (x)\right )\\ &=\frac{\sqrt{a} \operatorname{Subst}\left (\int \frac{1}{\sqrt{a+b x^4}} \, dx,x,\tan (x)\right )}{\sqrt{a}-\sqrt{b}}-\frac{\sqrt{a} \operatorname{Subst}\left (\int \frac{1+\frac{\sqrt{b} x^2}{\sqrt{a}}}{\left (1+x^2\right ) \sqrt{a+b x^4}} \, dx,x,\tan (x)\right )}{\sqrt{a}-\sqrt{b}}\\ &=-\frac{\tan ^{-1}\left (\frac{\sqrt{a+b} \tan (x)}{\sqrt{a+b \tan ^4(x)}}\right )}{2 \sqrt{a+b}}+\frac{\sqrt [4]{a} F\left (2 \tan ^{-1}\left (\frac{\sqrt [4]{b} \tan (x)}{\sqrt [4]{a}}\right )|\frac{1}{2}\right ) \left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right ) \sqrt{\frac{a+b \tan ^4(x)}{\left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right )^2}}}{2 \left (\sqrt{a}-\sqrt{b}\right ) \sqrt [4]{b} \sqrt{a+b \tan ^4(x)}}-\frac{\left (\sqrt{a}+\sqrt{b}\right ) \Pi \left (-\frac{\left (\sqrt{a}-\sqrt{b}\right )^2}{4 \sqrt{a} \sqrt{b}};2 \tan ^{-1}\left (\frac{\sqrt [4]{b} \tan (x)}{\sqrt [4]{a}}\right )|\frac{1}{2}\right ) \left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right ) \sqrt{\frac{a+b \tan ^4(x)}{\left (\sqrt{a}+\sqrt{b} \tan ^2(x)\right )^2}}}{4 \sqrt [4]{a} \left (\sqrt{a}-\sqrt{b}\right ) \sqrt [4]{b} \sqrt{a+b \tan ^4(x)}}\\ \end{align*}
Mathematica [C] time = 2.0611, size = 122, normalized size = 0.42 \[ -\frac{i \sqrt{\frac{b \tan ^4(x)}{a}+1} \left (\text{EllipticF}\left (i \sinh ^{-1}\left (\sqrt{\frac{i \sqrt{b}}{\sqrt{a}}} \tan (x)\right ),-1\right )-\Pi \left (-\frac{i \sqrt{a}}{\sqrt{b}};\left .i \sinh ^{-1}\left (\sqrt{\frac{i \sqrt{b}}{\sqrt{a}}} \tan (x)\right )\right |-1\right )\right )}{\sqrt{\frac{i \sqrt{b}}{\sqrt{a}}} \sqrt{a+b \tan ^4(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.059, size = 179, normalized size = 0.6 \begin{align*}{\sqrt{1-{i \left ( \tan \left ( x \right ) \right ) ^{2}\sqrt{b}{\frac{1}{\sqrt{a}}}}}\sqrt{1+{i \left ( \tan \left ( x \right ) \right ) ^{2}\sqrt{b}{\frac{1}{\sqrt{a}}}}}{\it EllipticF} \left ( \tan \left ( x \right ) \sqrt{{i\sqrt{b}{\frac{1}{\sqrt{a}}}}},i \right ){\frac{1}{\sqrt{{i\sqrt{b}{\frac{1}{\sqrt{a}}}}}}}{\frac{1}{\sqrt{a+b \left ( \tan \left ( x \right ) \right ) ^{4}}}}}-{\sqrt{1-{i \left ( \tan \left ( x \right ) \right ) ^{2}\sqrt{b}{\frac{1}{\sqrt{a}}}}}\sqrt{1+{i \left ( \tan \left ( x \right ) \right ) ^{2}\sqrt{b}{\frac{1}{\sqrt{a}}}}}{\it EllipticPi} \left ( \tan \left ( x \right ) \sqrt{{i\sqrt{b}{\frac{1}{\sqrt{a}}}}},{i\sqrt{a}{\frac{1}{\sqrt{b}}}},{\sqrt{{-i\sqrt{b}{\frac{1}{\sqrt{a}}}}}{\frac{1}{\sqrt{{i\sqrt{b}{\frac{1}{\sqrt{a}}}}}}}} \right ){\frac{1}{\sqrt{{i\sqrt{b}{\frac{1}{\sqrt{a}}}}}}}{\frac{1}{\sqrt{a+b \left ( \tan \left ( x \right ) \right ) ^{4}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan \left (x\right )^{2}}{\sqrt{b \tan \left (x\right )^{4} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\tan \left (x\right )^{2}}{\sqrt{b \tan \left (x\right )^{4} + a}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan ^{2}{\left (x \right )}}{\sqrt{a + b \tan ^{4}{\left (x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan \left (x\right )^{2}}{\sqrt{b \tan \left (x\right )^{4} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]